package com.sgb.kjwl.view.ui.adapter.machine;

import android.content.Context;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.ParentAreaEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class ParentAreaAdapter extends BaseRecycleAdapter<ParentAreaEntity<List<ParentAreaEntity>>> {

    public ParentAreaAdapter(Context context, List<ParentAreaEntity<List<ParentAreaEntity>>> datas) {
        super(context, R.layout.item_area_parent, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, final ParentAreaEntity<List<ParentAreaEntity>> entity) {
        holder.setBinding(BR.viewModel, entity);
    }

}
